<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>jsTree v.1.0 - json example with jstree</title>

<script type="text/javascript" src="../_lib/jquery.js"></script>

<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>

<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>

<script type="text/javascript" src="../jquery.jstree.js"></script>

<link type="text/css" rel="stylesheet" href="syntax/!style.css" />

<link type="text/css" rel="stylesheet" href="!style.css" />

<script type="text/javascript" src="syntax/!script.js"></script>

<script type="text/javascript">
	$(function() {

		$("#demo1").jstree({

			"json_data" : {

				"ajax" : {

					"url" : "/testmvc/hello",

					"data" : function(n) {

						//alert(n);

						return {
							id : n.attr ? n.attr("id") : 0
						};

					}

				}

			},

			"plugins" : [ "themes", "json_data" ]

		});

	});
</script>

<title>Insert title here</title>

</head>

<body>

<div id="demo1"></div>

</body>

</html>